//
//  CTPAlert.m
//  citipad
//
//  Created by Chih Yuan Liu on 2/16/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "CTPAlert.h"

@implementation CTPAlert

static CTPAlert* _instance;

+(id)instance{
	@synchronized(self){
		if(!_instance){
			_instance = [[[self class] alloc] init];
		}
	}
	return _instance;
}

-(void)alert:(NSString*)title withMessage:(NSString*)msg{
	UIAlertView *alert  = [[[UIAlertView alloc] initWithTitle: title
													message: msg
													delegate: self
													cancelButtonTitle:@"OK"
													otherButtonTitles: nil] autorelease];
	[alert show];
}

@end
